package com.yuhang.demo.dao;

import com.yuhang.demo.entity.UserEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户表
 * 
 * @author yyh
 * @email yyh@demo.com
 * @date 2021-07-15 16:24:33
 */
@Mapper
public interface UserDao extends BaseMapper<UserEntity> {


    UserEntity selectOne(@Param("phone") String phone);

    void saveUser(@Param("user") UserEntity user);

    int deleteUser(@Param("id") Integer id);
}
